package com.woniu.entity.vo;

import com.woniu.entity.Role;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class RoleVO {
    @NotNull()
    @Valid
    private Role role;

    @NotEmpty(message = "菜单 ids 不能为 null 或 empty")
    private int[] menuIds;

    @NotEmpty(message = "权限 id 不能为 null 或 empty")
    private int[] authIds;
}
